<?php
/**
 * Created by PhpStorm.
 * User=> Administrator
 * Date=> 2018\10\10 0010
 * Time=> 13=>24
 */

namespace app\admin\controller;


class Auth extends Base
{

    public function getTopMenu(){
        $result['data'] = [
            [
                "title"=>"系统基本参数",
                "icon"=>"&#xe631;",
                "href"=>"page/systemSetting/basicParameter.html",
                "mark"=>'basicParameter',
                "spread"=>false
            ],
            [
                "title"=>"系统日志",
                "icon"=>"icon-log",
                "href"=>"page/systemSetting/logs.html",
                "mark"=>'logs',
                "spread"=>false
            ],
            [
                "title"=>"友情链接",
                "icon"=>"&#xe64c;",
                "href"=>"page/systemSetting/linkList.html",
                "mark"=>'linkList',
                "spread"=>false
            ],
            [
                "title"=>"图标管理",
                "icon"=>"&#xe857;",
                "href"=>"page/systemSetting/icons.html",
                "mark"=>'icons',
                "spread"=>false
            ]
        ];
        //return json_encode($data);
        $this->assign('list',$result['data']);
        $result['html'] = $this->fetch();
        return $result;
    }

    public function getMenu(){
        $data = [
            "basicParameter"=>[
		        [
                    "title"=>"文章列表",
		        	"icon"=>"icon-text",
		        	"href"=> "page/news/newsList.html",
		        	"spread"=> false
		        ],
		        [
                    "title"=> "图片管理",
		        	"icon"=> "&#xe634;",
		        	"href"=> "page/img/images.html",
		        	"spread"=> false
		        ],
		        [
                    "title"=> "其他页面",
		        	"icon"=> "&#xe630;",
		        	"href"=> "",
		        	"spread"=> false,
		        	"children"=> [
		        		[
                            "title"=> "404页面",
		        			"icon"=> "&#xe61c;",
		        			"href"=> "page/404.html",
		        			"spread"=> false
		        		],
		        		[
                            "title"=> "登录",
		        			"icon"=> "&#xe609;",
		        			"href"=> "page/login/login.html",
		        			"spread"=> false,
		        			"target"=> "_blank"
		        		]
		        	]
		        ]
	        ],
	        "logs"=> [
		        [
                    "title"=> "用户中心",
		        	"icon"=> "&#xe612;",
		        	"href"=> "page/user/userList.html",
		        	"spread"=> false
		        ],
		        [
                    "title"=> "会员等级",
		        	"icon"=> "icon-vip",
		        	"href"=> "page/user/userGrade.html",
		        	"spread"=> false
		        ]
	        ],
	        "linkList"=> [
		        [
                    "title"=> "系统基本参数",
		        	"icon"=> "&#xe631;",
		        	"href"=> "page/systemSetting/basicParameter.html",
		        	"spread"=> false
		        ],[
                    "title"=> "系统日志",
		        	"icon"=> "icon-log",
		        	"href"=> "page/systemSetting/logs.html",
		        	"spread"=> false
		        ],
                [
                    "title"=> "友情链接",
			        "icon"=> "&#xe64c;",
			        "href"=> "page/systemSetting/linkList.html",
			        "spread"=> false
		        ],
                [
                    "title"=> "图标管理",
			        "icon"=> "&#xe857;",
			        "href"=> "page/systemSetting/icons.html",
			        "spread"=> false
		        ]
	        ],
	        "icons"=> [
	        	[
                    "title"=> "三级联动模块",
	        		"icon"=> "icon-mokuai",
	        		"href"=> "page/doc/addressDoc.html",
	        		"spread"=> false
	        	],
                [
                    "title"=> "bodyTab模块",
	        		"icon"=> "icon-mokuai",
	        		"href"=> "page/doc/bodyTabDoc.html",
	        		"spread"=> false
	        	],[
                    "title"=> "三级菜单",
	        		"icon"=> "icon-mokuai",
	        		"href"=> "page/doc/navDoc.html",
	        		"spread"=> false
	        	]
	        ]
        ];
        return $data;
    }
}